<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@include file="../../commons/taglib.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>修改管理员</title>
    <link rel="stylesheet" href="<%=request.getContextPath() %>/static/css/pintuer.css">
    <link rel="stylesheet" href="<%=request.getContextPath() %>/static/css/admin.css">
    <script src="<%=request.getContextPath() %>/static/js/jquery.js"></script>
    <script src="<%=request.getContextPath() %>/static/js/pintuer.js"></script>
    <%-- <script type="text/javascript">
	<%if (session.getAttribute("access")==null){%>
		alert("请登录后访问！");
		parent.location.href='${pageContext.request.contextPath}/login';
	<% }%>
	</script> --%>
</head>
<body>
<div class="panel admin-panel margin-top">
    <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>修改仓库管理员</strong></div>
    <div class="body-content">
        <form method="post" class="form-x" action="doedit">
        	<%String id=request.getParameter("id");
		            String tele=request.getParameter("tele");
		            String userName=request.getParameter("userName");
        		%>
        	<input type="hidden" name="id" value="<%=id
        			%>"/>
            <div class="form-group">
            	 
                <div class="label">
                    <label>管理员名：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" name="userName" value="<%=userName%>" data-validate="required:请输入分院名" />
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
	          <div class="label">
		         <label>管理员权限：</label>
		      </div>
	          <div class="field">
	            <select name="role_id" class="input w50">
	              <option value="1">总管理</option>
	              <option value="2">分院管理员</option>
	              <option value="3" selected = "selected">仓库管理员</option>
	              <option value="4">医生</option>
	              <option value="5">会员</option>
	            </select>
	            <div class="tips"></div>
	          </div>
	        </div>
            <div class="form-group">
                <div class="label">
                    <label>管理员电话：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" name="tele" value="<%=tele%>" data-validate="required:请输入联系电话" />
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label></label>
                </div>
                <div class="field">
                    <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
                    <a class="button bg-red" href="outlogin" style="margin-left: 10px;"> 取消</a>
                </div>
            </div>
        </form>
    </div>
</div>
</body>
<script>

</script>
</html>